package com.hz.house.enums;

/**
 * 商场枚举
 * @author lfw
 *
 */
public enum SearchTagMarketEnum {

	//500m内、1km内、3km内
	
	MARKER_500M(1,"500m内",500),
	MARKER_1KM(2,"1km内",1000),
	MARKER_3kM(3,"3km内",3000);
	
	private int id;
	
	private String name;
	
	private int distance;
	
	SearchTagMarketEnum(int id,String name,int distance){
		this.distance=distance;
		this.id=id;
		this.name=name;
	}

	
	public static SearchTagMarketEnum getSearchTagMarketById(int id) {
		SearchTagMarketEnum[] all = SearchTagMarketEnum.values();
		for(SearchTagMarketEnum s:all) {
			if(s.getId()==id)
				return s;
		}
		return null;
	} 
	
	
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public int getDistance() {
		return distance;
	}
	
}
